package com.tjise.eduservice.service;

import com.tjise.eduservice.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tjise.eduservice.entity.chapter.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author TJISE
 * @since 2021-06-23
 */
public interface EduChapterService extends IService<EduChapter> {
    /**
     * 根据课程id查询课程大纲
     *
     * @param chapterId
     * @return
     */

    List<ChapterVo> getChapterVoByCourseId(String chapterId);


    /**
     * 根据章节id删除章节
     *
     * @param chapterId
     * @return
     */
    boolean deleteChapter(String chapterId);

    /**
     * 根据课程id删除章节
     *
     * @param courseId
     */
    void removeChapterByCourseId(String courseId);
}
